#include "QCustomplotFactoryPlugin.h"
#include "QCustomplotFactory.h"

ModuleLinkerSPtr				global_module_linker_ = nullptr;

QCustomplotFactoryPlugin::QCustomplotFactoryPlugin(QObject* parent)
	: QObject(parent)
{

}

QCustomplotFactoryPlugin::~QCustomplotFactoryPlugin() 
{

}

void QCustomplotFactoryPlugin::InitPlugin(ModuleLinkerSPtr _context_ptr)
{
	if (!global_module_linker_)
		global_module_linker_ = _context_ptr;

	IQCustomplotFactorySPtr custom_plot_ptr = std::make_shared<QCustomplotFactory>();
	global_module_linker_->SetServicePtrById(IQCUSTOMPLOTFACTORYSERVICEID, custom_plot_ptr);
}

void QCustomplotFactoryPlugin::StartPlugin()
{
	if (!global_module_linker_)
		return;

	return;
}